import { Component, PropTypes } from '@didi/teddy-immutable'
const { string, func, bool } = PropTypes

const noop = () => {}
class PopLayer extends Component {
  static propTypes = {
    icon: string,
    desc: string,
    btnText: string,
    onBtnTap: func,
  }

  static defaultProps = {
    icon: 'praise',
    desc: '',
    onBtnTap: noop,
    btnText: '知道喽',
  }

  onBtnTap(e) {
    this.props.onBtnTap(e)
  }
}

export default PopLayer